<template>
    <van-search @click="toSearch"  disabled placeholder="请输入搜索关键词" />
</template>

<script setup>
import { useRoute, useRouter } from 'vue-router'

const router = useRouter()
const route = useRoute()

const toSearch = () => {
    //路由跳转传参 name为空即可
    router.push({ path: '/search', query: { name: '' } })
}
</script>

<style lang="scss" scoped></style>